var router = require('router');
router.config({
    container:'.gy_contents',
    onAfter:function(){
        var target = this.target,
            small_dom = $('.desk_small');
        $('.desk_left a.gy-srt').removeClass('gy-srt');
        if(target){
            target = $(target);
            if(target.length){
                !small_dom.length && target.parents('.desk_hover').slideDown();
                !small_dom.length && target.parents('.desk_lists').find('.u-marking').css('display','none');
                !small_dom.length && target.parents('.desk_lists').find('.slide-up').css('display','block')
                target.addClass('gy-srt').closest('.menu-item').addClass('s-show')
            }
            else{
                router.location('/tjzx/fpgl/index')
            }
        }
    }
})

return function(){

     //发票管理
    router(require('../pages/tjzx/fpgl/index'))

    //发票管理
    router(require('../pages/tjzx/gssk/index'))

    //国税税款统计countstatistics
    router(require('../pages/tjzx/ssjkgl/index'))

    //国税税款统计countstatistics
    router(require('../pages/tjzx/dssk/index'))

    //汇总统计
    router(require('../pages/tjzx/hztj/index')) 

    //用户分析
    router(require('../pages/tjzx/yhfx/index')) 

    //结算报单
    router(require('../pages/tjzx/gsskjbd/index'))
    router.start();
}